# -*- coding: utf-8 -*-

# -----------------------------------------------------------------------------
# Django 配置
# -----------------------------------------------------------------------------

# 部署环境(DEV/TEST/PROD)
ENV_NAME = 'DEV'

DEBUG = True

HOSTS = [
    'localhost',
    '127.0.0.1',
    '192.168.0.7',
    'gma.com',
]

# -----------------------------------------------------------------------------
# DB 配置
# -----------------------------------------------------------------------------

# 测试服
DB_CONFIG = {
    'host': '127.0.0.1',
    'port': 3306,
    'database': 'yyzb',
    'user': 'root',
    'password': 'root',
}

# 测试服
REDIS_CONFIG = {
    'host': '127.0.0.1',
    'port': '6379',
    'password': '',
    'db': '0',
}

# -----------------------------------------------------------------------------
# WeChat(微信)
# -----------------------------------------------------------------------------

# 微信公众平台 开发者ID(AppID)
WX_APP_ID = ''
# 微信公众平台 开发者密码(AppSecret)
WX_APP_SECRET = ''

# 支持微信公众号支付的商户号
WX_MCH_IDS_FOR_MP = []
# 支持微信H5页面支付的商户号
WX_MCH_IDS_FOR_H5 = []

# 微信商户id
WX_MCH_ID = ''
# 微信支付密钥
WX_API_KEY = ''
# 微信商户名称
WX_MCH_NAME = ''

# 微信商户证书
WX_MCH_CERT_PATH = '~/'
WX_MCH_CERT_KEY_PATH = '~/'
# 微信发红包的客户端IP地址
WX_AGENT_RED_PACK_CLIENT_IP = ''
# 发送请求的服务器IP地址
WX_SERVER_IP = ''
# 微信充值回调
WXWEB_PAY_NOTIFY_URL = 'https://api.yyzb.com/notify/wxpayApp/'
# 微信内置浏览器用户授权获取code后的回调页面
WXWEB_REDIRECT_URI = 'https://m.yyzb.com/mp/wx_auth_callback/'

# -----------------------------------------------------------------------------
# Alipay(支付宝)
# -----------------------------------------------------------------------------

# 支付宝: 应用id
ALIPAY_APP_ID = ''
# 支付宝: 应用私钥
ALIPAY_APP_PRIVATE_KEY = ''
# 支付宝: 支付宝公钥(SHA256withRsa)
ALIPAY_PUBLIC_KEY = ''

# -----------------------------------------------------------------------------
# 其他三方配置
# -----------------------------------------------------------------------------

# QiNiu(七牛)
QINIU_ACCESS_KEY = ''
QINIU_SECRET_KEY = ''
QINIU_BUCKET_NAME = ''
QINIU_DOWNLOAD_URL = ''
QINIU_VIDEO_BUCKET_NAME = ''

# AGORA (声网)
AGORA_BASE_URL = ''
AGORA_CUSTOMER_ID = ''
AGORA_CUSTOMER_CERTIFICATE = ''
AGORA_APP_ID = ''
AGORA_APP_CERTIFICATE = ''

# YunPian(云片网)
YP_SMS_API_KEY = '7995795afe5ae146851abe71cf5fd6ac'

# ShortLink(短链接)
ALI_SHORT_URL_APPCODE = ''

# ChinaUnionPay(银联)
UNIPAY_MID = ''
UNIPAY_TID = ''
UNIPAY_INST_MID = ''
UNIPAY_MSG_SRC = ''
UNIPAY_MSG_SRC_ID = ''
UNIPAY_SECRET = ''
UNIPAY_URL = ''
UNIPAY_NOTIFY_URL = ''


# -----------------------------------------------------------------------------
# APP 配置
# -----------------------------------------------------------------------------

# 消费记录上报验签KEY
GMA_KEY = 'psaUr95(A6NC_W3havtWBD$rweg68wj_'
# 服务器日志地址
API_SERVER_LOG_DIR = ''
# API服务器的调用地址
VCHAT_API_SERVER_URL = 'https://test.api.yyzb.com/public/?service='
# API服务器的调用地址
HAIBAO_API_SERVER_URL = 'https://api2.coolgin.cn/public/?service='

# Sentry DSN
SENTRY_DSN = ''

APP_DATA = {
    # ---------------------------
    # iOS
    # ---------------------------

    # 【iOS】
    'com.haibao.ios': {
        'JPUSH_ENABLE': False,
        'JPUSH_APP_KEY': '',
        'JPUSH_MASTER_SECRET': '',
    },
}


APP_VERSION_DATA = {
    'haibao': {
        'IOS': '',
        'ANDROID': '',
    },
}

# -----------------------------------------------------------------------------
# CPA
# -----------------------------------------------------------------------------

# CPA JWT密钥
CPA_JWT_SECRET = ''
# CPA 客户密钥
CPA_SECRETS = {}

# -----------------------------------------------------------------------------
# 测试账号
# -----------------------------------------------------------------------------

# 调试用的 openid
TEST_OPEN_ID = ''
# 充值测试账号
TEST_UIDS_FOR_PAY = []
# 测试手机号码
TEST_MOBILES = []

# --------------------------------------------------------------------------------------------------
if __name__ == '__main__':
    print('ok')
